<?php
header("Content-type: text/html; charset=utf-8");
ini_set('display_errors', 1);
error_reporting(E_ALL);
require('cls_db.php');
$x=new duphpAdmin('localhost','root','123321','0735r');
$x->SetTable('n_photos')->SetFieldsInList('ID,name,cover')->SetFieldsInModify('ID,name,cover')->SetFunction('name','ShowImg')->DoForAll();
function ShowImg($name){
	return sprintf('<img src="http://192.168.0.223/0735r/upload/news/270/%s.jpg" />',$name);
}
?>